TARGET = webfeeds
DESTDIR = bin
# Add more folders to ship with the application, here

# Additional import path used to resolve QML modules in Creator's code model
QML_IMPORT_PATH =

QT+= declarative network
CONFIG += qtestlib
#DEFINES += USE_MODELTEST
symbian:TARGET.UID3 = 0xE0E6683D

# Smart Installer package's UID
# This UID is from the protected range and therefore the package will
# fail to install if self-signed. By default qmake uses the unprotected
# range value if unprotected UID is defined for the application and
# 0x2002CCCF value if protected UID is given to the application
#symbian:DEPLOYMENT.installer_header = 0x2002CCCF

# Allow network access on Symbian
symbian:TARGET.CAPABILITY += NetworkServices

# If your application uses the Qt Mobility libraries, uncomment the following
# lines and add the respective components to the MOBILITY variable.
# CONFIG += mobility
# MOBILITY +=

# enable booster
CONFIG += qdeclarative-boostable

# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp \
    src/pageitemmodel.cpp \
    src/webfeedsapp.cpp

HEADERS += \
    src/webfeedsapp.h \
    src/pageitemmodel_p.h

contains(DEFINES, USE_MODELTEST) {
    SOURCES += src/modeltest.cpp
    HEADERS += src/modeltest.h
}

SOURCES +=

OTHER_FILES += \
    qml/main.qml \
    app.desktop \
    app.svg \
    app.png \
    splash.jpg \
    splash-l.jpg \
    qml/toolbuttons/AddServiceToolButton.qml \
    qml/menu_items/RemoveServiceMenuItem.qml \
    qml/MainPage.qml \
    qml/MainPageDelegate.qml \
    webfeeds_settings.desktop \
    webfeeds_settings.xml \
    qml/sheets/AboutSheet.qml \
    qml/menu_items/SettingsMenuItem.qml \
    qml/menu_items/AboutMenuItem.qml

RESOURCES += \
    res.qrc

# Please do not modify the following two lines. Required for deployment.
#include(deployment.pri)
include(../qmlapplicationviewer/qmlapplicationviewer.pri)
qtcAddDeployment()
OTHER_FILES += \
    qtc_packaging/debian_harmattan/rules \
    qtc_packaging/debian_harmattan/README \
    qtc_packaging/debian_harmattan/manifest.aegis \
    qtc_packaging/debian_harmattan/copyright \
    qtc_packaging/debian_harmattan/control \
    qtc_packaging/debian_harmattan/compat \
    qtc_packaging/debian_harmattan/changelog

QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden
QMAKE_LFLAGS += -pie -rdynamic
QMAKE_CXXFLAGS += `pkg-config --cflags qdeclarative-boostable`
QMAKE_LFLAGS += `pkg-config --libs qdeclarative-boostable`

HEADERS += src/pageitemmodel.h

INCLUDEPATH += src

include(../common.pri)
include(../shared/shared.pri)
include(../plugins/plugins.pri)

INCLUDEPATH += ../shared

contains(MEEGO_EDITION,harmattan) {
    target.path = /opt/$$TARGET/bin
    INSTALLS += target

    splash.files += splash.jpg
    splash.files += splash-l.jpg
    splash.path = /usr/share/$$TARGET
    INSTALLS += splash

    desktopfile.files = webfeeds.desktop
    desktopfile.path = /usr/share/applications
    INSTALLS += desktopfile

    icon.files = webfeeds.png
    icon.path = /usr/share/icons/hicolor/80x80/apps
    INSTALLS += icon

    settingsdesktop.path = /usr/share/duicontrolpanel/desktops
    settingsdesktop.files = webfeeds_settings.desktop
    INSTALLS += settingsdesktop

    settingsxml.path = /usr/share/duicontrolpanel/uidescriptions
    settingsxml.files = webfeeds_settings.xml
    INSTALLS += settingsxml
}
